<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<xsd:element name="amazon">
		
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="books"/>
				<xsd:element ref="eshop"/>
				</xsd:sequence>
			</xsd:complexType>

		
	</xsd:element>
	<xsd:element name="books">
		<xsd:complexType>
			<xsd:choice minOccurs="0" maxOccurs="unbounded">
				<xsd:element ref="book"/>
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
	
	<xsd:element name="eshop">
		<xsd:complexType>
			<xsd:choice minOccurs="0" maxOccurs="unbounded">
				<xsd:element ref="products"/>
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
	
		<xsd:element name="book">
		<xsd:complexType mixed="true">
			<xsd:choice minOccurs="0" maxOccurs="unbounded">
				<xsd:element ref="title"/>
				<xsd:element ref="author"/>
				<xsd:element ref="rating"/>
				<xsd:element ref="price"/>
			</xsd:choice>
			<xsd:attribute name="category" type="xsd:string" use="required"/>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="products">
		<xsd:complexType mixed="true">
			<xsd:choice minOccurs="0" maxOccurs="unbounded">
				<xsd:element ref="title"/>
			
				<xsd:element ref="price"/>
			</xsd:choice>
			<xsd:attribute name="category" type="xsd:string" use="required"/>
		</xsd:complexType>
	</xsd:element>
	
	<xsd:element name="title" type="xsd:string"/>
	<xsd:element name="author" type="xsd:string"/>
	<xsd:element name="rating" type="xsd:string"/>
	<xsd:element name="price" type="xsd:string"/>

</xsd:schema>
